<template>
	<view>
		<view  @mousedown='mst' @touchstart='mst' @mousemove="mm" @touchmove="mm" @touchend='mend' class="test-wk">
			<view>
				<view v-for="(item,index) in 100" :key="index" class="test-item">{{index}}</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				isPcScroll:false,
			};
		},
		async onLoad() {
			this.$nextTick(async function(){
				let p = await this.$Querey('.test-wk').catch(e=>{})
				console.log(p[0]);
			})
		},
		methods: {
			mst(e){
				// console.log(e);
				if(e.changedTouches.length==0){
					this.isPcScroll = true;
				}
			},
			mm(e) {
				//console.log(e);
				if(e.changedTouches.length==0){
					this.isPcScroll = true;
				}
			},
			mend(e){
				if(e.changedTouches.length==0){
					this.isPcScroll = false;
				}
			}
		},
		
	}
</script>

<style lang="scss">
.test-wk{
	width: 150px;
	height: 150px;
	background-color: grey;
	overflow-x: hidden;
	overflow-y: auto;
	.test-item{
		width: 100%;
		height: 20px;
		background-color: black;
		color: white;
	}
}
</style>
